import request from '@/utils/request'
import downFileRequest from "@/utils/downFileRequest";

export function conditionAllResultNotify(data){
    return request({
        url: "/result/notify",
        method: "post",
        data: data
    })
}

// 获得全部盖章后的成交结果通知书
export function getAllResultStamped(data){
    return request({
        url: "/purchase/get/allResultStamped/" + data,
        method: "get"
    })
}
// 获得生成的结果通知书
export function getAllResultNotification(data){
    return request({
        url: "/result/notify/get/allResultNotification/" + data,
        method: "get"
    })
}

// 下载生生成的结果通知书
export function downloadResultNotifyFile(data){
    return downFileRequest({
        url: "/result/notify/download/resultNotification/" +data,
        method: "get"
    })
}

// 获得排名第一的供应商
export function getFirstSuppler(data){
    return request({
        url: "/result/notify/getFirst/" + data,
        method: "get"
    })
}

// 生成成果通知书
export function createRestNotifyFile(data){
    return request({
        url: "/result/notify/createResultNotify/" + data,
        method: "get"
    })
}

// 删除成交结果通知书盖章的
export function deleteRestFile(data){
    return request({
        url:"/resultNotification/delete/resultNotification/" + data,
        method:"delete"
    })
}
